package com.chain.BrotherExchange.ui.adapter;

import android.text.Editable;
import android.text.TextWatcher;

public class TextWatcherAdapter implements TextWatcher {

    private final TextWatcherAfter mTextWatcherAfter;

    public interface TextWatcherAfter{
        void afterTextChanged(Editable s);
    }

    public TextWatcherAdapter(TextWatcherAfter textWatcherAfter){
        this.mTextWatcherAfter = textWatcherAfter;
    }

    @Override
    public void beforeTextChanged(CharSequence s, int start, int count, int after) {

    }

    @Override
    public void onTextChanged(CharSequence s, int start, int before, int count) {

    }

    @Override
    public void afterTextChanged(Editable s) {

            mTextWatcherAfter.afterTextChanged(s);

    }
}
